import axios from 'axios';

let base = 'login';

export const requestLogin = params => {  return axios.post(`${base}/signup`, params).then(res => res.data); };
export const logout = params => {  return axios.post(`${base}/logout`, params).then(res => res.data); };
export const verifyCode = params => {  return axios.post(`${base}/verify_code`, params).then(res => res.data); };
export const verifyCodeValidate = params => {  return axios.post(`${base}/validate_verify_code`, params).then(res => res.data); };
export const resetUserPassword = params => {  return axios.post(`${base}/reset_password`, params).then(res => res.data); };
export const newsList = params => {  return axios.post(`${base}/news_list`, params).then(res => res.data); };
export const unitSingUp = params => {  return axios.post(`${base}/unit_signup`, params).then(res => res.data); };
